import Vue from 'vue'
import App from './App.vue'
import { router } from './router/router'
import vant from 'vant';
import ElementUI from 'element-ui';
import 'vant/lib/index.css';

// --- 公用CSS --- //
import './style/common.less';
// import './style/var.less';
import 'vant/lib/index.css';
// --- 关闭控制台生产环境警告 --- //
Vue.config.productionTip = false

// --- 全局注册组件/插件 --- //
Vue.use(Vue => {
	const plugin = {
    ElementUI,
    vant};
	Object.keys(plugin).forEach(key => {
		Vue.use(plugin[key]);
	});
});

new Vue({
  router,
  render: h => h(App),
}).$mount('#app');
